import { useSelector } from "react-redux";
const List = () => {
    const { list } = useSelector((state) => state.hots);
    return (
        <ul className="list-group">
            {list.map((item) => {
                return (
                    <li className="list-group-item" key={item.index}>
                        {item.title}
                    </li>
                );
            })}
        </ul>
    );
};

export default List;
